﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ds.DataBase.Model
{
    /// <summary>
    /// 模板内容
    /// </summary>
    public class MoBan_Content
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int nrid { set; get; }
        /// <summary>
        /// 顺序
        /// </summary>
        public int shunxu { set; get; } = 0;
        /// <summary>
        /// 内容
        /// </summary>
        public string nr { set; get; }
        /// <summary>
        /// 分值
        /// </summary>
        public decimal fenzhi { set; get; } = 0;
        /// <summary>
        /// 控件ID,默认继承上级路径里的
        /// </summary>
        public int ControlID { set; get; } = 0;
        public virtual MoBan_Path MoBanPath { set; get; }
        public virtual  ICollection<MoBan_Answer> MoBan_Answers { set; get; }
    }
}
